package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Scheduleattach entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "scheduleattach", catalog = "common")
public class Scheduleattach implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer courseId;
	private String attachPath;
	private String attachName;
	private String fileName;

	// Constructors

	/** default constructor */
	public Scheduleattach() {
	}

	/** full constructor */
	public Scheduleattach(Integer courseId, String attachPath,
			String attachName, String fileName) {
		this.courseId = courseId;
		this.attachPath = attachPath;
		this.attachName = attachName;
		this.fileName = fileName;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "courseID", nullable = false)
	public Integer getCourseId() {
		return this.courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	@Column(name = "attachPath", nullable = false)
	public String getAttachPath() {
		return this.attachPath;
	}

	public void setAttachPath(String attachPath) {
		this.attachPath = attachPath;
	}

	@Column(name = "attachName", nullable = false, length = 100)
	public String getAttachName() {
		return this.attachName;
	}

	public void setAttachName(String attachName) {
		this.attachName = attachName;
	}

	@Column(name = "fileName", nullable = false, length = 30)
	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}